Skip to main content

All Questions

Tagged with
-2votes
1answer
46views

Strange issues with using crontab to run a python script

I'm working on a project that needs to run headless - I need to run a python script "main.py" within a virtual environment at boot. I decided to use crontab to do this. My crontab line is as ...
Anonymous22249's user avatar
0votes
2answers
183views

Why isn't the display environment starting with this script at boot?

I have a Raspberry Pi 4 running Debian GNU/Linux 12 (bookworm) I have a Python script in a shell file launcher.sh (with executable for all permissions) that runs happily without complaint if I ...
Dribbler's user avatar
0votes
0answers
45views

rc. local not working

I have an issue with opening Python script at startup. I have added python /home/serhii/Desktop/Packed/Hello.py & to rc.local and the script does not open. But, the command sudo pigpiod is working....
SPS's user avatar
1vote
1answer
417views

Can't play song on startup using Python and rc.local

I have a python app called main.py, that runs upon startup using rc.local. During this app's runtime, it runs an external bash script 'play.sh' that runs vlc to play a song. The code in the 'play.sh' ...
Dave Listman's user avatar
0votes
0answers
146views

If I start a script using audostart where do my logs go?

I've added an entry to my /etc/xdg/lxsession/LXDE-pi/autostart file as follows: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @/usr/bin/python /home/pi/...
pinoob's user avatar
0votes
0answers
248views

python script does not start at boot

I follow this blog to the t to start a python script on startup. (Rasperi pi4B OS 64bit) my launcher.sh works fine she trying sh launcher.sh the file looks like: cd /home/pi/Documents PYTHONPATH=/home/...
Towlie's user avatar
0votes
1answer
267views

launcher.sh behaves differently @reboot than calling with sh

I was send here from Stackoverflow. Thank you for your help. I am using a launcher.sh for a raspberrypi 4B with Raspi os x64 to start a python script in a python env on startup. But setting the ...
Towlie's user avatar
0votes
3answers
114views

Trying to run a python program on boot - error file location?

I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
Leon Segal's user avatar
0votes
2answers
728views

Python script runs in rc.local, but won't save file, Works from command line

I have a python script that saves values from a MPU6050 sensor to a csv, and then zips the file. When I run it from Thonny or direct from the command line, it works. When I run from rc.local at ...
Dan Hendrickson's user avatar
0votes
2answers
499views

How to run python script at startup?

I've been all over the internet looking for a solution for this but everybody seems to have different answers and none of them work. I have a python script that emits audio through the headphone jack ...
Arlo Erwin's user avatar
-1votes
1answer
29views

camera program gives error when run in /etc/profile but the program runs fine

This is the error I get : picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources import numpy as np import os from picamera import PiCamera from time import sleep from gpiozero ...
Hat1412's user avatar
0votes
0answers
190views

Raspberry locked in Blackscreen after editing /etc/profile

Im Working on a Project, that on buttonpress via GPIO things would happen. I got it working and wanted to add a way, that the Program starts on boot up. A quick search later i found this Video: https:/...
Valyrious's user avatar
0votes
2answers
6kviews

Configure Pi to boot up and run script when plugged in without login

How can i set up my pi zero, so that if I plug it in, it runs a python program, without having to login etc? The project goal is a device that plays an audio file on the push of a hardware button. I ...
Anton's user avatar
2votes
2answers
580views

Trouble running a python script at startup

For context, I am using a Raspberry Pi 2 model B, and I am trying to run a continuous python script when the pi boots up. The script uses the GPIO Pins, and with the data it recieves, it changes ...
SwampyX's user avatar
1vote
1answer
69views

Don't understand error trying to run a shell script on startup

I have a program that I want to run when the Pi starts up; it is the only program I expect to run in this environment; when the program ends, the Pi can shut down (after I'm done debugging things). ...
arcy's user avatar
  • 113

153050per page
close